<?php
/**
 * Created by PhpStorm.
 * User: W
 * Date: 2018/2/24
 * Time: 14:52
 */

namespace app\common\model;

use think\Exception;
use think\Log;
use think\Model;

class Users extends Model
{


    protected function getStatusAttr($value)
    {
        $status = [1 => '启用',2 => '禁用'];
        return ['val' => $value, 'text' => $status[$value]];
    }

}
